File format detection Below are the first two bytes within the following image types that identify each one. //PNG //(decimal) 137 80 78 71 13 10 26 10 //(hex) 89 50 4e 47 0d 0a 1a 0a //(ASCII C notation) \211 P N G \r \n \032 \n //JPG //(decimal) 255 216 //(hex) FF D8 //(ASCII) \ÿ \Ø //BMP //(decimal) 66 77 //(hex) 42 4D //(ASCII) \B \M